package com.wptai.douyin.open.api.data.discovery;

import com.wptai.douyin.config.AppConfig;
import com.wptai.douyin.open.api.data.hot.HotsearchSentencesParam;
import com.wptai.douyin.open.api.data.hot.HotsearchSentencesResult;
import com.wptai.douyin.open.api.token.AccessTokenApi;
import com.wptai.douyin.open.base.ApiBase;
import com.wptai.douyin.open.base.ApiResponse;

public class DiscoveryEntRankItemApi extends ApiBase {

    public static String API_URL = AppConfig.getInstance().httpUrl+"/discovery/ent/rank/item";

    public DiscoveryEntRankItemResult get(){

        AccessTokenApi accessTokenApi = new AccessTokenApi();
        String clientAccessToken = accessTokenApi.get().getAccessToken();

        DiscoveryEntRankItemParam param = new DiscoveryEntRankItemParam();
        param.setAccessToken(clientAccessToken);

        String url = API_URL+"?"+param.getNoPageUrlParam();
        ApiResponse response = sendGet(url);
        DiscoveryEntRankItemResult result = response.dataToBean(DiscoveryEntRankItemResult.class);
        return result;
    }

    @Override
    public ApiBase withAccessToken(String accessToken) {
        return null;
    }

    @Override
    public ApiBase withOpenId(String openId) {
        return null;
    }

    @Override
    public String scope() {
        return null;
    }
}
